from pyecharts.charts import Bar

from pyecharts import options

salmin=[1000,2000,4000,6000,5000,6500]

city=["九江","南昌","北京","深圳","成都","上海"]

bar=Bar()
bar.add_xaxis(city)
bar.add_yaxis("月薪/元",salmin)
bar.set_global_opts(title_opts=options.TitleOpts(title="各城市的最低薪水图",subtitle="单位/元"))
bar.render("barmin.html")